package com.junmeng.jdemo.viewstub;

import android.os.Bundle;
import android.view.View;

import com.example.common.base.BaseActivityDelegate;
import com.junmeng.jdemo.databinding.ActivityViewStubBinding;

public class ViewStubActivity extends BaseActivityDelegate {

    ActivityViewStubBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityViewStubBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
    }

    public void onClickInflate(View view) {
        try {
            binding.viewStub.inflate();
        } catch (Exception ignore) {

        }
    }
}